import { createApp } from 'vue'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css';

import 'dayjs/locale/zh-cn'
import '@/assets/styles/index.scss' // global css


// 注册指令
import plugins from './plugins' // plugins
import vueI18n from './i18n/index'
import pinia from '@/store/index'

//svg图标
import '@/assets/iconfont/iconfont.js' //iconfont
import 'virtual:svg-icons-register'
import elementIcons from '@/components/SvgIcon/svgicon'
import SvgIcon from '@/components/SvgIcon/index.vue'


import App from './App.vue'
import router from './router'

const app = createApp(App)
app.component('svg-icon', SvgIcon)



app.use(pinia).use(router).use(plugins).use(ElementPlus, {}).use(elementIcons).use(vueI18n).mount('#app')
